package com.utrailer.wlt.order.controller;

import com.utrailer.common.rest.ResultVO;
import com.utrailer.wlt.order.service.feign.FeignVehicleService;
import lombok.extern.log4j.Log4j2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * TODO
 *
 * @author Chen Song
 * @since
 */
@RestController
@RequestMapping("feign")
@Log4j2
public class FeignController {

    @Autowired
    private FeignVehicleService feignVehicleService;

    @RequestMapping("/detail/{id}")
    public ResultVO<String> getById(@PathVariable Long id) {
        log.info(id);
        return feignVehicleService.getById(id);
    }

}
